Optimal. Leaf size=234 \[ \frac {2 f^2 \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d^3 \sqrt {a^2+b^2}}-\frac {2 f^2 \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b d^3 \sqrt {a^2+b^2}}+\frac {2 f (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {2 f (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {(e+f x)^2}{b d (a+b \sinh (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.44, antiderivative size = 234, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {5464, 3322, 2264, 2190, 2279, 2391} \[ \frac {2 f^2 \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b d^3 \sqrt {a^2+b^2}}-\frac {2 f^2 \text {PolyLog}\left (2,-\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}\right )}{b d^3 \sqrt {a^2+b^2}}+\frac {2 f (e+f x) \log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {2 f (e+f x) \log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {(e+f x)^2}{b d (a+b \sinh (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2190
Rule 2264
Rule 2279
Rule 2391
Rule 3322
Rule 5464
Rubi steps
\begin {align*} \int \frac {(e+f x)^2 \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx &=-\frac {(e+f x)^2}{b d (a+b \sinh (c+d x))}+\frac {(2 f) \int \frac {e+f x}{a+b \sinh (c+d x)} \, dx}{b d}\\ &=-\frac {(e+f x)^2}{b d (a+b \sinh (c+d x))}+\frac {(4 f) \int \frac {e^{c+d x} (e+f x)}{-b+2 a e^{c+d x}+b e^{2 (c+d x)}} \, dx}{b d}\\ &=-\frac {(e+f x)^2}{b d (a+b \sinh (c+d x))}+\frac {(4 f) \int \frac {e^{c+d x} (e+f x)}{2 a-2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{\sqrt {a^2+b^2} d}-\frac {(4 f) \int \frac {e^{c+d x} (e+f x)}{2 a+2 \sqrt {a^2+b^2}+2 b e^{c+d x}} \, dx}{\sqrt {a^2+b^2} d}\\ &=\frac {2 f (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {2 f (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {(e+f x)^2}{b d (a+b \sinh (c+d x))}-\frac {\left (2 f^2\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a-2 \sqrt {a^2+b^2}}\right ) \, dx}{b \sqrt {a^2+b^2} d^2}+\frac {\left (2 f^2\right ) \int \log \left (1+\frac {2 b e^{c+d x}}{2 a+2 \sqrt {a^2+b^2}}\right ) \, dx}{b \sqrt {a^2+b^2} d^2}\\ &=\frac {2 f (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {2 f (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {(e+f x)^2}{b d (a+b \sinh (c+d x))}-\frac {\left (2 f^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a-2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b \sqrt {a^2+b^2} d^3}+\frac {\left (2 f^2\right ) \operatorname {Subst}\left (\int \frac {\log \left (1+\frac {2 b x}{2 a+2 \sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{b \sqrt {a^2+b^2} d^3}\\ &=\frac {2 f (e+f x) \log \left (1+\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {2 f (e+f x) \log \left (1+\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}+\frac {2 f^2 \text {Li}_2\left (-\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^3}-\frac {2 f^2 \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^3}-\frac {(e+f x)^2}{b d (a+b \sinh (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.54, size = 175, normalized size = 0.75 \[ \frac {2 f \left (d (e+f x) \left (\log \left (\frac {b e^{c+d x}}{a-\sqrt {a^2+b^2}}+1\right )-\log \left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}+a}+1\right )\right )+f \text {Li}_2\left (\frac {b e^{c+d x}}{\sqrt {a^2+b^2}-a}\right )-f \text {Li}_2\left (-\frac {b e^{c+d x}}{a+\sqrt {a^2+b^2}}\right )\right )}{b d^3 \sqrt {a^2+b^2}}-\frac {(e+f x)^2}{b d (a+b \sinh (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.51, size = 1378, normalized size = 5.89 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (f x + e\right )}^{2} \cosh \left (d x + c\right )}{{\left (b \sinh \left (d x + c\right ) + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.00, size = 491, normalized size = 2.10 \[ -\frac {2 \left (x^{2} f^{2}+2 e f x +e^{2}\right ) {\mathrm e}^{d x +c}}{b d \left (b \,{\mathrm e}^{2 d x +2 c}+2 a \,{\mathrm e}^{d x +c}-b \right )}-\frac {4 f e \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d^{2} b \sqrt {a^{2}+b^{2}}}+\frac {2 f^{2} \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) x}{d^{2} b \sqrt {a^{2}+b^{2}}}+\frac {2 f^{2} \ln \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{3} b \sqrt {a^{2}+b^{2}}}-\frac {2 f^{2} \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) x}{d^{2} b \sqrt {a^{2}+b^{2}}}-\frac {2 f^{2} \ln \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right ) c}{d^{3} b \sqrt {a^{2}+b^{2}}}+\frac {2 f^{2} \dilog \left (\frac {-b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}-a}{-a +\sqrt {a^{2}+b^{2}}}\right )}{d^{3} b \sqrt {a^{2}+b^{2}}}-\frac {2 f^{2} \dilog \left (\frac {b \,{\mathrm e}^{d x +c}+\sqrt {a^{2}+b^{2}}+a}{a +\sqrt {a^{2}+b^{2}}}\right )}{d^{3} b \sqrt {a^{2}+b^{2}}}+\frac {4 f^{2} c \arctanh \left (\frac {2 b \,{\mathrm e}^{d x +c}+2 a}{2 \sqrt {a^{2}+b^{2}}}\right )}{d^{3} b \sqrt {a^{2}+b^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -2 \, {\left (\frac {x^{2} e^{\left (d x + c\right )}}{b^{2} d e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b d e^{\left (d x + c\right )} - b^{2} d} - 2 \, \int \frac {x e^{\left (d x + c\right )}}{b^{2} d e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b d e^{\left (d x + c\right )} - b^{2} d}\,{d x}\right )} f^{2} - 2 \, e f {\left (\frac {2 \, x e^{\left (d x + c\right )}}{b^{2} d e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b d e^{\left (d x + c\right )} - b^{2} d} - \frac {\log \left (\frac {b e^{\left (d x + c\right )} + a - \sqrt {a^{2} + b^{2}}}{b e^{\left (d x + c\right )} + a + \sqrt {a^{2} + b^{2}}}\right )}{\sqrt {a^{2} + b^{2}} b d^{2}}\right )} - \frac {2 \, e^{2} e^{\left (-d x - c\right )}}{{\left (2 \, a b e^{\left (-d x - c\right )} - b^{2} e^{\left (-2 \, d x - 2 \, c\right )} + b^{2}\right )} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\mathrm {cosh}\left (c+d\,x\right )\,{\left (e+f\,x\right )}^2}{{\left (a+b\,\mathrm {sinh}\left (c+d\,x\right )\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________